package com.runfast.waimai.dao.model;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

public class RunfastAccountrecord implements Serializable {
    /**
     * 账号变动清单
     */
    private Integer id;

    private BigDecimal balance;//余额

    private String cardnumber;//单号

    private Integer cid;//用户ID

    private BigDecimal minmonety;//最低提现金额

    private String mobile;//电话号码

    private BigDecimal monetary;//金额（正未充值负为消费）

    private String name;//用户名称

    private Integer type;//0:消费,1:充值,3:退款,4提现

    private Date createtime;//创建时间

    private Integer genretype;// 0用户 1骑手

    private String typename;//充值/消费类型

    private BigDecimal beforemonety;//变动前金额

    private Integer showtype;//0收入1支出

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public RunfastAccountrecord withId(Integer id) {
        this.setId(id);
        return this;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public BigDecimal getBalance() {
        return balance;
    }

    public RunfastAccountrecord withBalance(BigDecimal balance) {
        this.setBalance(balance);
        return this;
    }

    public void setBalance(BigDecimal balance) {
        this.balance = balance;
    }

    public String getCardnumber() {
        return cardnumber;
    }

    public RunfastAccountrecord withCardnumber(String cardnumber) {
        this.setCardnumber(cardnumber);
        return this;
    }

    public void setCardnumber(String cardnumber) {
        this.cardnumber = cardnumber == null ? null : cardnumber.trim();
    }

    public Integer getCid() {
        return cid;
    }

    public RunfastAccountrecord withCid(Integer cid) {
        this.setCid(cid);
        return this;
    }

    public void setCid(Integer cid) {
        this.cid = cid;
    }

    public BigDecimal getMinmonety() {
        return minmonety;
    }

    public RunfastAccountrecord withMinmonety(BigDecimal minmonety) {
        this.setMinmonety(minmonety);
        return this;
    }

    public void setMinmonety(BigDecimal minmonety) {
        this.minmonety = minmonety;
    }

    public String getMobile() {
        return mobile;
    }

    public RunfastAccountrecord withMobile(String mobile) {
        this.setMobile(mobile);
        return this;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile == null ? null : mobile.trim();
    }

    public BigDecimal getMonetary() {
        return monetary;
    }

    public RunfastAccountrecord withMonetary(BigDecimal monetary) {
        this.setMonetary(monetary);
        return this;
    }

    public void setMonetary(BigDecimal monetary) {
        this.monetary = monetary;
    }

    public String getName() {
        return name;
    }

    public RunfastAccountrecord withName(String name) {
        this.setName(name);
        return this;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public Integer getType() {
        return type;
    }

    public RunfastAccountrecord withType(Integer type) {
        this.setType(type);
        return this;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public RunfastAccountrecord withCreatetime(Date createtime) {
        this.setCreatetime(createtime);
        return this;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Integer getGenretype() {
        return genretype;
    }

    public RunfastAccountrecord withGenretype(Integer genretype) {
        this.setGenretype(genretype);
        return this;
    }

    public void setGenretype(Integer genretype) {
        this.genretype = genretype;
    }

    public String getTypename() {
        return typename;
    }

    public RunfastAccountrecord withTypename(String typename) {
        this.setTypename(typename);
        return this;
    }

    public void setTypename(String typename) {
        this.typename = typename == null ? null : typename.trim();
    }

    public BigDecimal getBeforemonety() {
        return beforemonety;
    }

    public RunfastAccountrecord withBeforemonety(BigDecimal beforemonety) {
        this.setBeforemonety(beforemonety);
        return this;
    }

    public void setBeforemonety(BigDecimal beforemonety) {
        this.beforemonety = beforemonety;
    }

    public Integer getShowtype() {
        return showtype;
    }

    public RunfastAccountrecord withShowtype(Integer showtype) {
        this.setShowtype(showtype);
        return this;
    }

    public void setShowtype(Integer showtype) {
        this.showtype = showtype;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", balance=").append(balance);
        sb.append(", cardnumber=").append(cardnumber);
        sb.append(", cid=").append(cid);
        sb.append(", minmonety=").append(minmonety);
        sb.append(", mobile=").append(mobile);
        sb.append(", monetary=").append(monetary);
        sb.append(", name=").append(name);
        sb.append(", type=").append(type);
        sb.append(", createtime=").append(createtime);
        sb.append(", genretype=").append(genretype);
        sb.append(", typename=").append(typename);
        sb.append(", beforemonety=").append(beforemonety);
        sb.append(", showtype=").append(showtype);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}